package greentycoon.ville;

public class TimeHandler extends Thread {
	
	public static int PERIODE = 5*1000; //30 sec
	private Ville ville;
	
	public TimeHandler(Ville ville) {
		this.ville = ville;
	}
	
	public void run() {
		while(true) {
			ville.changeJour();
			try {
				TimeHandler.sleep(PERIODE);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
			
		}
	}

}
